import React from "react";
type PropTypes = {
  name: string;
  color?: string;
  size?: number;
};
function Icon(props: PropTypes) {
  return (
    <i
      className={`iconfont ${props.name}`}
      style={{
        color: props.color,
        fontSize: `${props.size}PX`,
      }}
    />
  );
}
export default Icon;
